package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划列表对象 zzb_task
 * 
 * @author pluto_xun@qq.com
 * @date 2020-12-11
 */
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划ID */
    private Long taskId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    private SysUser sysUser;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private Long deptId;

    /** 年度 */
    @Excel(name = "年度")
    private Integer taskYear;

    /** 周数 */
    @Excel(name = "周数")
    private Integer weekNum;

    /** 开始日 */
    @Excel(name = "开始日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDay;

    /** 结束日 */
    @Excel(name = "结束日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDay;

    /** 计划状态 */
    @Excel(name = "计划状态")
    private Integer status;

    /** 子计划列表*/
    private List<TaskAlert> taskAlert;

    public List<TaskAlert> getTaskAlert() {
        return taskAlert;
    }

    public void setTaskAlert(List<TaskAlert> taskAlert) {
        this.taskAlert = taskAlert;
    }

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setTaskYear(Integer taskYear) 
    {
        this.taskYear = taskYear;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Integer getTaskYear()
    {
        return taskYear;
    }
    public void setWeekNum(Integer weekNum) 
    {
        this.weekNum = weekNum;
    }

    public Integer getWeekNum() 
    {
        return weekNum;
    }
    public void setStartDay(Date startDay) 
    {
        this.startDay = startDay;
    }

    public Date getStartDay() 
    {
        return startDay;
    }
    public void setEndDay(Date endDay) 
    {
        this.endDay = endDay;
    }

    public Date getEndDay() 
    {
        return endDay;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("taskYear", getTaskYear())
            .append("weekNum", getWeekNum())
            .append("startDay", getStartDay())
            .append("endDay", getEndDay())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
